public class LazySingletonFactory {

    private static LazySingletonFactory instance = null;

    //直到调用时才创建
    public static LazySingletonFactory getInstance(){
        if (instance == null){
            instance = new LazySingletonFactory();
        }
        return instance;
    }

    private String name;
    public String shoInfo(){
        return  Integer.toString(this.hashCode());
    }
    public String getName(){
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
